﻿@model PageList<ManualReg>
@{int RowNumber = Model.RecordStartIndex; }
<div class="table-scrollable">
    <table class="table table-striped table-bordered table-hover table-manage">
        <thead>
            <tr>
                @*<th class="w35px">
                    <label><input class="checkbox-check" type="checkbox"><span></span></label>
                </th>*@
                <th data-order="@nameof(ManualReg.RowNumber)"><div class="w35px">序号</div></th>
                <th data-order="@nameof(ManualReg.CarNumber)" style="text-align:center;"><div class="w100px">车牌号</div></th>
                @*<th data-order="@nameof(ManualReg.Line)" style="text-align:center;"><div class="w150px">线路</div></th>*@

                <th data-order="@nameof(ManualReg.Station)" style="text-align:center;">客运站</th>
                <th data-order="@nameof(ManualReg.PointName)" style="text-align:center;">稽查点</th>
                <th data-order="@nameof(ManualReg.ExitNumber)" style="text-align:center;">出站乘客</th>
                <th data-order="@nameof(ManualReg.PassengerNumber)" style="text-align:center;">售票数</th>
                @*<th data-order="@nameof(ManualReg.DriverName)" style="text-align:center;">司机姓名</th>
                <th data-order="@nameof(ManualReg.DriverPhone)" style="text-align:center;"><div class="w100px">联系电话</div></th>*@           
                @*<th data-order="@nameof(ManualReg.Corp)" style="text-align:center;">运输企业</th>*@
                <th data-order="@nameof(ManualReg.CheckStatusName)" style="text-align:center;">稽查状态</th>
                <th data-order="@nameof(ManualReg.OffenceName)" style="text-align:center;">违规内容</th>
                @*<th data-order="@nameof(ManualReg.Note)">备注</th>*@
                <th data-order="@nameof(ManualReg.ProcessStatusName)" style="text-align:center;">处理结果</th>
                <th class="w100px" data-order="@nameof(ManualReg.CreateTime)" style="text-align:center;"><div class="w100px">登记时间</div></th>
                <th data-order="@nameof(ManualReg.CreateName)" style="text-align:center;">操作人</th>
                <th class="text-center"><div class="w100px" style="text-align:center;">操作</div></th>
            </tr>
        </thead>
        <tbody>
            @foreach (var record in Model)
            {
                string rowclass = "";
                if (record.CheckStatus == 1)
                {
                    rowclass = "row-red";
                }

                    <tr class="cursor-pointer" data-url="@Url.Action("Details",new {id = record.Id})">
                    @*<td>
                        <label><input class="checkbox-check" type="checkbox" value="@record.Id"><span></span></label>
                    </td>*@
                    <td class="">@RowNumber</td>
                    <td class="">
                        <a class="uimodal @rowclass" data-url="@Url.Action("Details", new {id = record.Id})">
                            @record.CarNumber
                        </a>
                    </td>
                    @*<td class="">@record.Line</td>*@
                    <td class="">@record.StationName</td>
                    <td class="">@record.PointName</td>
                    <td class="">@record.ExitNumber</td>
                    <td class="">@record.PassengerNumber</td>
                    @*<td class="">@record.DriverName</td>
                    <td class="">@record.DriverPhone</td>*@
                    @*<td class="">@record.Corp</td>*@
                    <td class="">@Html.BoolLabel(!record.RGCheckStatus, record.CheckStatusName, record.CheckStatusName)</td>
                    @*<td class="">@record.CheckStatusName</td>*@
                    <td class="">@record.OffenceName</td>
                    @*<td class="">@record.Note</td>*@
                    @*<td class="">@record.ProcessStatusName</td>*@
                    <td class="">@Html.BoolLabel(!record.RGProcessStatus, record.ProcessStatusName, record.ProcessStatusName)</td>
                    <td class="text-center">@DateTimeHelper.FormatDateHasSecond(record.CreateTime)</td>
                    <td class="">@record.CreateName</td>
                    <td class="text-center">
                        @*<a class="color-primary uimodal" data-toggle="tooltip"
                           data-url="@Url.Action("Edit", new {id = record.Id})"
                           title="编辑">
                            <i class="fa fa-lg fa-edit"></i>
                        </a>*@
                        <a class="color-primary uimodal" data-toggle="tooltip"
                           data-url="@Url.Action("Edit", new {id = record.Id})"
                           title="编辑">
                            <i class="fa fa-calendar-times-o">编辑</i>
                        </a>
                        @*&nbsp;*@
                        @*<a class="color-danger tsdelete" data-toggle="tooltip"
                           data-url="@Url.Action("Delete", new {id = record.Id})"
                           title="删除">
                            <i class="fa fa-lg fa-trash-o"></i>
                        </a>*@
                    </td>
                </tr>
                RowNumber++;
            }
        </tbody>
    </table>
</div>
    @Html.RenderPages(Model)
